<!DOCTYPE html>
<meta charset="utf-8">
<title id="page-title"></title>

<body>
</body>
<script>
  var xhr = new XMLHttpRequest();
  xhr.withCredentials = false;
  xhr.addEventListener("readystatechange", function () {
    if (this.readyState === 4) {
      console.log(this.responseText);
      var img = document.createElement('img');
      img.src = this.responseText;
      img.alt = '图片描述';
      img.width = '100';
      img.height = '100';
      document.body.appendChild(img);
    }
  });

  xhr.open("get", "http://ts.lanhuamall.club/MpOpenidReg/GetSceneQrCode" + location.search);
  xhr.setRequestHeader("Content-Type", "application/json");
  xhr.send();
</script>
</html>